[LINUX] Do not early-unpin pagetables that contain foreign mappings.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 Aug 2006 14:48:48 +0000 (15:48 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 Aug 2006 14:48:48 +0000 (15:48 +0100)
commit177155de98343fa322fd0e3f6d1c05315aaa3f74
tree82577c67409d80a3f630be6b02f2b186f66e9b94
parent5dd83c7e6d9eb830707ff31702f3f09a4a22a260
[LINUX] Do not early-unpin pagetables that contain foreign mappings.
This fixes a bug whereby foreign pages were freed by the unpin, which
then become owned by the local domain before it destroys its ptes.
It therefore (erroneously) detects the mappings as local and so
updates reference counts, leading to crashes.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/ldt-xen.c
linux-2.6-xen-sparse/arch/i386/mm/ioremap-xen.c
linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c
linux-2.6-xen-sparse/arch/x86_64/mm/pageattr-xen.c
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu.h
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/mmu.h